class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
			t.string   "title",            :limit => 50
		  t.text     "comment"
		  t.datetime "created_at",                  :null => false
		  t.integer  "commentable_id",   :limit => 11, :default => 0,  :null => false
		  t.string   "commentable_type", :limit => 15, :default => "", :null => false
		  t.integer  "user_id",          :limit => 11, :default => 0,  :null => false
		  t.string   "user_name"
		  t.string   "email"
    end
  end

  def self.down
    drop_table :comments
  end
end
